package com.quiz.bis.domain.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.quiz.common.core.domain.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 考生作答记录表
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("exam_student_records")
public class ExamStudentRecord extends BaseModel {
    private static final long serialVersionUID = 1L;

    @TableId
    private Long id;

    @TableField("exam_id")
    private Long examId;

    @TableField("user_id")
    private Long userId;

    @TableField("start_time")
    private Date startTime;

    @TableField("submit_time")
    private Date submitTime;

    @TableField("score")
    private BigDecimal score;

    @TableField("status")
    private Integer status; // 0-未开始 1-进行中 2-已提交 3-超时提交 4-强制交卷

    @TableField("answer_json")
    private String answerJson;

    @TableField("manual_corrected")
    private Integer manualCorrected;

    @TableField("manual_correct_time")
    private Date manualCorrectTime;

    @TableField("manual_correct_by")
    private String manualCorrectBy;


}